* {
  padding: 0;
  margin: 0;
}

:root {
  --head-height: 50px;
}

.white {
  color: white;
}

.page {
  width: 100vw;
  min-height: 100vh;
  box-sizing: border-box;
  background-image: linear-gradient(to top right, rgb(76, 102, 89), rgb(97, 109, 97), rgb(104, 104, 90), rgb(102, 103, 107), rgb(105, 100, 105));
}

.ml20 {
  margin-left: 20px;
}

[v-cloak] {
  display: none;
}

#head {
  height: var(--head-height);
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  position: fixed;
  top: 0;
  padding: 0 15px;
  box-sizing: border-box;
  background-image: linear-gradient(#222, transparent);
}

#head img {
  height: 25px;
  width: 25px;
}

#head button {
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#time {
  font-size: 18px;
  flex: 1;
  text-align: right;
}

button {
  background: none;
  color: white;
  outline: none;
  box-sizing: border-box;
  min-height: 20px;
  border: 1px solid transparent;
}

.class {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 0 15px;
}

.class > button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 0px 5px 0;
}

button:focus {
  background-color: rgba(255,255,255,.5);
  box-shadow: 0 3px 3px #333;
  z-index: 2;
  color: #444;
  border-radius: 20px;
}

button .icon {
  box-shadow: 0 1px 2px #333;
}

button .name {
  white-space: nowrap;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0px 0px 1px #333;
}

button:focus .icon {
  position: relative;
  z-index: 2;
  box-shadow: none;
}

button:focus .name {
  position: relative;
  z-index: 2;
  text-shadow: none;
}

.content {
  padding-top: var(--head-height);
  padding-bottom: var(--head-height);
}

.text-shadow {
  text-shadow: #666 0px 0px 2px;
}

@media (orientation: landscape) {
  .class > button {
    width: calc(100% / 7);
    font-size: 14px;
  }

  .icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
  }
}

@media (orientation: portrait) {
  .class > button {
    width: calc(100% / 4);
    font-size: 12px;
  }

  .icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
  }
}
